﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ESS_Project.aspx.cs" Inherits="KPIS.GERP.GFMS.APP.App_UI.Forms.ESS_Project" %>
<%@ Register src="../UserControls/Toolbar.ascx" tagname="Toolbar" TagPrefix="uc1" %>
<%@ Register src="../UserControls/DropDownList_Contact.ascx" tagname="DropDownList_Contact" TagPrefix="uc2" %>
<%@ Register src="../UserControls/DropDownList_Emp.ascx" tagname="DropDownList_Emp" tagprefix="uc4" %>
<%@ Register src="../UserControls/DatePicker.ascx" tagname="DatePicker" tagprefix="uc6" %>

<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="head">
    
    <title>รายการอนุมัติโครงการ</title>
    <link href="../CssClass.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../Scripts/Common.js" type="text/jscript"></script>
    <script language="JavaScript" src="../Scripts/DatePicker.js" type="text/jscript"></script>
</asp:Content>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    
    lblError<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            var sumAmount = null;
            //var sumGrpAmount = null;
            var sumBathAmount = null;
            var tempSumAmount = 0.0;
            var tempSumGrpAmount = 0.0;
            var tempSumBathAmount = 0.0;

            function FooterLoad1(sender, args)
            {
                sumAmount = sender;
            }
            function FooterLoad2(sender, args)
            {
                sumBathAmount = sender;
            }
//            function FooterLoad3(sender, args)
//            {
//                sumGrpAmount = sender;
//            }
            //function txtBlur(tAmount, tExchangeRate, tBathAmount, lSumSubActAmount)//, tFooterAmount)//, tGrpAmount)
            //{
            //    var txtAmount = $find(tAmount);
            //    var lblSumSubActAmount = $find(lSumSubActAmount);
            //    //var txtFooterAmount = $find(tFooterAmount);
                
            //    //var txtGrpAmount = $find(tGrpAmount);
            //    //var txtExchangeRate = $find(tExchangeRate);
            //    //var txtBathAmount = $find(tBathAmount);
            
            //    var dAmount = 0;
            //    //var dGrpAmount = 0;
            //    //var dExchangeRate = 0;
            //    var dBathAmount = 0;
                
            //    if (txtAmount.get_value().toString().length > 0)
            //        dAmount = txtAmount.get_value();
                    
            //    //if (txtExchangeRate.get_value().toString().length > 0)
            //    //    dExchangeRate = txtExchangeRate.get_value();
                
            //    dBathAmount = dAmount; //* dExchangeRate;
            //    //txtBathAmount.set_value(dBathAmount);
            //    sumBathAmount.set_value(tempSumBathAmount + dBathAmount);
            //    lblSumSubActAmount.set_value(tempSumGrpAmount + dBathAmount);
            //}
            //function txtFocus(tAmount, tExchangeRate, tBathAmount, lSumSubActAmount)
            //{
            //    var txtBathAmount = $find(tAmount);//$find(tBathAmount);
            //    var lblSumSubActAmount = $find(lSumSubActAmount);
            //    var dBathAmount = 0;
            //    var dSumAmount = 0;
            //    var dSumSubActAmount = 0;
                
            //    if (txtBathAmount.get_value().toString().length > 0)
            //        dBathAmount = txtBathAmount.get_value();
                    
            //    if (sumBathAmount.get_value().toString().length > 0)
            //        dSumAmount = sumBathAmount.get_value();
                    
            //    if (lblSumSubActAmount.get_value().toString().length > 0)
            //        dSumSubActAmount = lblSumSubActAmount.get_value();
                    
            //    tempSumBathAmount = dSumAmount - dBathAmount;
            //    tempSumGrpAmount =  dSumSubActAmount - dBathAmount;
            //}
            
            function openWin()
            {
                var oWnd = radopen("ESS_ProjectHistory_old.aspx", "RadWindow1");
            }
            function OnClientClose(oWnd,args)
            {
                //get the transferred arguments
                var arg = args.get_argument();
                if(arg)
                { 
                    var bgm_proj_oper_seq = arg.bgm_proj_oper_seq;
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(bgm_proj_oper_seq);
                }
            }
            
            function openWinExpRate(seq, tAmount, tBathAmount, tGrpAmount)
            {                
                txtFocus(tAmount, null, tBathAmount, tGrpAmount);
                var oWndExpRate = radopen("FIM_ExpenseRates.aspx"
                    + "?Seq=[1]&txtAmount=[2]&txGrpAmount=[3]".replace('[1]', seq).replace('[2]', tAmount).replace('[3]', tGrpAmount)
                    , "RadWindow2");
            }
            function OnClientCloseExpRate(oWndExpRate,argsExpRate)
            {
                //get the transferred arguments
                
                var argExpRate = argsExpRate.get_argument();
                if(argExpRate)
                {
                    var txtBathAmount = $find(argExpRate.tAmount);
                    txtBathAmount.set_value(argExpRate.amount);
                    txtBlur(argExpRate.tAmount, null, argExpRate.tBathAmount, argExpRate.tGrpAmount);
                }
            }
            function openWinQty(seq, tAmount, tBathAmount, tGrpAmount, tUnitPrice, tUnitQty)
            {                
                txtFocus(tAmount, null, tBathAmount, tGrpAmount);
                var oWndExpRate = radopen("ESS_ProjectOperationQty.aspx"
                    + "?Seq=[1]&txtAmount=[2]&txGrpAmount=[3]".replace('[1]', seq).replace('[2]', tAmount).replace('[3]', tGrpAmount)
                    , "RadWindow2");
            }
            function OnClientCloseQty(oWndQty,argsQty)
            {
                //get the transferred arguments
                
                var argQty = argsQty.get_argument();
                if(argExpRate)
                {
                    var txtBathAmount = $find(argQty.tAmount);
                    txtBathAmount.set_value(argQty.amount);
                    txtBlur(argQty.tAmount, null, argQty.tBathAmount, argQty.tGrpAmount);
                }
            }
            function OpenReportWindow() {
                var RadWindow = $find("<%= RadWindowReport.ClientID %>");
                
                radopen("ViewReport.aspx?name=ProjectOperation", "RadWindowReport");
            }
            
        </script>
    </telerik:RadCodeBlock>
    
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <%--<telerik:AjaxSetting AjaxControlID="DatePickerNew1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DatePickerNew1" 
                        LoadingPanelID="" />
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None" Skin="Outlook">
    </telerik:RadAjaxLoadingPanel>
    
    <div style="padding-top: 5px">
        <div class="moduleContent1000">
            <div class="moduleDivBottom1000">
                <asp:Panel ID="Panel1" runat="server">
                    <ul class="formList" style="width: 920px">
                        <li class="titleListItem">
                            <table width="900px">
                                <tr>
                                    <td width="150px" class="TextHeaderSmall">
                                        รายการขออนุมัติโครงการ
                                    </td>
                                    <td class="TextHeaderSmallBlack">
                                        &nbsp;</td>
                                    <td align="right">
                                        <asp:Label ID="lblMode" runat="server" Visible="false" />
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CssClass="LinkButton" 
                                            CausesValidation="False" onclick="cmdAddNew_Click">
                                            <img alt="" id="img8" runat="server" src="~/App_UI/Images/Buttons/cancel.gif" height="13" /> ยกเลิกการแก้ไข
                                        </asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                        <asp:LinkButton ID="cmdHistory" runat="server" CssClass="LinkButton" 
                                            OnClientClick="openWin()" CausesValidation="False">
                                            <img alt="" id="imgViewAll" runat="server" src="~/App_UI/Images/Buttons/DataGrid.gif" height="13" /> ประวัติการขออนุมัติโครงการ
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </li>
                    </ul>
                    <asp:Panel ID="PanelGrid" runat="server">
                    </asp:Panel>
                    <asp:Panel ID="PanelEdit" runat="server">
                        <ul class="formList" style="width: 920px">
                            <li class="lastListItem">
                                <telerik:RadTabStrip runat="server" ID="RadTabStrip1"
                                    SelectedIndex="0" MultiPageID="RadMultiPage1" 
                                    Skin="WebBlue" ontabclick="RadTabStrip1_TabClick">
                                    <Tabs>
                                        <telerik:RadTab Text="ข้อมูลโครงการ" Selected="True">
                                        </telerik:RadTab>
                                        <telerik:RadTab Text="ค่าใช้จ่าย">
                                        </telerik:RadTab>
                                        <telerik:RadTab Text="คณะทำงาน">
                                        </telerik:RadTab>
                                        <telerik:RadTab Text="ภาพรวม">
                                        </telerik:RadTab>
                                    </Tabs>
                                </telerik:RadTabStrip>
                                <asp:Panel ID="PanelProject" runat="server" CssClass="panelTab" ScrollBars="Auto" Width="920px" Height="340px">
                                    <ul class="formList" style="width: 840px">
                                        <li class="lastListItem">
                                            <table width="840px">
                                                <tr>
                                                    <td class="TextHeaderSmall">
                                                        ข้อมูลของรายการ
                                                    </td>
                                                    <td class="BgLine" width="730">
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                        <li class="lastListItem">
                                            <table>
                                                <tr>
                                                    <td align="right" width="150px">
                                                        วันที่ทำรายการ :
                                                    </td>
                                                    <td width="250px">
                                                        <uc6:DatePicker ID="dpBgmProjectDate" runat="server" />
                                                        <span class="span">&nbsp;*</span>
                                                        <asp:Image runat="server" id="imgBgmProjectDate" ImageUrl="~/App_UI/Images/Buttons/warning.png"
                                                            ToolTip="กรุณากรอกข้อมูล" Visible="false" />
                                                    </td>
                                                    <td align="right" width="100px">
                                                        ปีงบประมาณ :
                                                    </td>
                                                    <td>
                                                        <telerik:RadNumericTextBox ID="txtBgmYear" runat="server"
                                                            Width="100px" ShowSpinButtons="True" 
                                                            NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" />
                                                        <%--<asp:Label ID="lblBgmYear" runat="server" ForeColor="Blue">
                                                        </asp:Label>--%>
                                                        <asp:Label ID="lblBgmProjectSeq" runat="server" Visible="False" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                        <li class="lastListItem">
                                            <table width="840px">
                                                <tr>
                                                    <td class="TextHeaderSmall">
                                                        ข้อมูลโครงการ
                                                    </td>
                                                    <td class="BgLine" width="750px">
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                        <li class="lastListItem">
                                            <table>
                                                <tr>
                                                    <td align="right" width="150px">
                                                        งาน/โครงการ :
                                                    </td>
                                                    <td colspan="3">
                                                        <telerik:RadComboBox ID="ddlBgmReceiveSeq" Runat="server" 
                                                            DataTextField="bgm_proj_name" DataValueField="bgm_proj_seq"
                                                            Filter="Contains" DropDownWidth="500px" AutoPostBack="True" 
                                                            Width="500px"
                                                            OnSelectedIndexChanged="ddlBgmReceiveSeq_SelectedIndexChanged">
                                                        </telerik:RadComboBox>
                                                        <span class="span">&nbsp;*</span>
                                                        <asp:Image runat="server" id="imgBgmRecSeq" ImageUrl="~/App_UI/Images/Buttons/warning.png"
                                                            ToolTip="กรุณากรอกข้อมูล" Visible="false" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" width="150px" valign="top">
                                                        โครงการบูรณาการ :
                                                    </td>
                                                    <td colspan="3">
                                                        <table>
                                                            <asp:Repeater ID="Repeater1" runat="server">
                                                                <HeaderTemplate>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <tr>
                                                                        <td align="left" style="color: #0000FF">- <%# Eval("bgm_option_name")%></td>
                                                                    </tr>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="150px" align="right">
                                                        วันที่เริ่ม :
                                                    </td>
                                                    <td width="150px">
                                                        <uc6:DatePicker ID="dpStartDate" runat="server" />
                                                    </td>
                                                    <td width="100px" align="right">
                                                        วันที่สิ้นสุด :
                                                    </td>
                                                    <td>
                                                        <uc6:DatePicker ID="dpEndDate" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" width="150px" valign="top">
                                                        ชื่องาน :
                                                    </td>
                                                    <td colspan="3">
                                                        <telerik:RadTextBox ID="txtBgmProjectName" runat="server"
                                                            Width="500px" Height="50px" TextMode="MultiLine" />
                                                        <span class="span">&nbsp;*</span>
                                                        <asp:Image runat="server" id="imgBgmProjectName" ImageUrl="~/App_UI/Images/Buttons/warning.png"
                                                            ToolTip="กรุณากรอกข้อมูล" Visible="false" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" width="150px">
                                                        จำนวนผู้เข้าร่วมกิจกรรม :
                                                    </td>
                                                    <td colspan="3">
                                                        <telerik:RadNumericTextBox ID="txtAttendCount" runat="server" >
                                                            <NumberFormat DecimalDigits="0" />
                                                        </telerik:RadNumericTextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                    </ul>
                                </asp:Panel>
                                <asp:Panel ID="PanelExpense" runat="server" CssClass="panelTab" ScrollBars="Auto" Width="920px" Height="340px">
                                    <%--<ul class="formList" style="width: 840px">
                                        <li class="lastListItem">--%>
                                            <table>
                                                <tr>
                                                    <td width="5px">
                                                    </td>
                                                    <td class="TextHeaderSmall">
                                                        รายการค่าใช้จ่าย
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="5px">
                                                    </td>
                                                    <td>
                                                        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="grdBgmProjectExpense" runat="server" AutoGenerateColumns="false"
                                                            AllowMultiRowEdit="false" AllowMultiRowSelection="true" AllowFilteringByColumn="false"
                                                            Width="450px" Height="310px" AllowPaging="false" ShowFooter="true"
                                                            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                                            GroupingSettings-GroupContinuedFormatString=""
                                                            GroupingSettings-GroupContinuesFormatString=""
                                                            GroupingSettings-GroupSplitFormat=""
                                                            OnItemDataBound="grdBgmProjectExpense_ItemDataBound">
                                                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" GroupLoadMode="Client"
                                                                DataKeyNames="m_bgm_projectexpense.bgm_exp_seq" NoMasterRecordsText="< ไม่มีข้อมูล >" GroupsDefaultExpanded="true">
                                                                <RowIndicatorColumn>
                                                                    <HeaderStyle Width="5px" />
                                                                </RowIndicatorColumn>
                                                                <ExpandCollapseColumn>
                                                                    <HeaderStyle Width="5px" />
                                                                </ExpandCollapseColumn>
                                                                <Columns>
                                                                    <telerik:GridBoundColumn DataField="bgm_proj_exp_seq" DataType="System.Int32" 
                                                                        HeaderText="bgm_proj_exp_seq" UniqueName="bgm_proj_exp_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.bgm_proj_seq"
                                                                        HeaderText="m_bgm_projectexpense.bgm_proj_seq" UniqueName="m_bgm_projectexpense.bgm_proj_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.bgm_source_seq"
                                                                        HeaderText="แหล่งเงิน" UniqueName="m_bgm_projectexpense.bgm_source_seq" Visible="False"
                                                                        GroupByExpression="m_bgm_projectexpense.m_bgm_mas_source.bgm_source_name Group By m_bgm_projectexpense.bgm_source_seq">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.m_bgm_mas_source.bgm_source_name"
                                                                        HeaderText="แหล่งเงิน" UniqueName="m_bgm_projectexpense.m_bgm_mas_source.bgm_source_name" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.bgm_exp_seq"
                                                                        HeaderText="รหัสค่าใช้จ่าย" UniqueName="m_bgm_projectexpense.bgm_exp_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_seq"
                                                                        HeaderText="รหัสงบรายจ่าย" UniqueName="m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_name"
                                                                        HeaderText="งบรายจ่าย" UniqueName="m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_name" Visible="False"
                                                                        GroupByExpression="m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_name Group By m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_seq">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="bgm_proj_oper_exp_seq"
                                                                        HeaderText="bgm_proj_oper_exp_seq" UniqueName="bgm_proj_oper_exp_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="bgm_proj_oper_seq"
                                                                        HeaderText="bgm_proj_oper_seq" UniqueName="bgm_proj_oper_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="exp_rate_count"
                                                                        HeaderText="exp_rate_count" UniqueName="exp_rate_count" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="icm_res_item_seq"
                                                                        HeaderText="icm_res_item_seq" UniqueName="icm_res_item_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_name" HeaderText="ค่าใช้จ่าย"
                                                                        UniqueName="m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <%--<telerik:GridTemplateColumn DataField="m_bgm_projectexpense_temp.amount" HeaderText="เงินจัดสรร(บาท)"
                                                                        UniqueName="m_bgm_projectexpense_temp.amount" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False"
                                                                        HeaderStyle-Width="90px" ItemStyle-HorizontalAlign="Right">
                                                                        <FilterTemplate>
                                                                        </FilterTemplate>
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblProjectExpenseAmount" runat="server" ForeColor="Blue"
                                                                                Text='<%# DataBinder.Eval( Container, "DataItem.m_bgm_projectexpense_temp.amount" ) %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <telerik:RadNumericTextBox ID="txtFooterProjectExpenseAmount" runat="server" Width="85px" CssClass="NumericTextBox"
                                                                                ForeColor="Blue" ReadOnly="true">
                                                                            </telerik:RadNumericTextBox>
                                                                        </FooterTemplate>
                                                                    </telerik:GridTemplateColumn>--%>
                                                                    <telerik:GridBoundColumn DataField="m_bgm_projectexpense.amount" HeaderText="เงินจัดสรร(บาท)"
                                                                        UniqueName="m_bgm_projectexpense.amount" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False"
                                                                        HeaderStyle-Width="90px" DataFormatString="{0:n2}" ItemStyle-HorizontalAlign="Right">
                                                                    </telerik:GridBoundColumn><%--Aggregate="Sum" FooterStyle-ForeColor="Blue"--%>
                                                                    <telerik:GridTemplateColumn UniqueName="amount" HeaderText="จำนวนเงินที่ขอ"
                                                                        ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" HeaderStyle-Width="110px">
                                                                        <ItemTemplate>
                                                                            <telerik:RadNumericTextBox ID="txtAmount" runat="server" Width="85px" CssClass="NumericTextBox"
                                                                                Value='<%# DataBinder.Eval( Container, "DataItem.amount"  ) %>'
                                                                                DisabledStyle-BackColor="#EEEEEE" DisabledStyle-ForeColor="Blue"><%--ClientEvents-OnValueChanging="SetNumber"--%>
                                                                            </telerik:RadNumericTextBox>
                                                                            <asp:ImageButton ID="cmdExpRate" runat="server" ImageUrl="../Images/Buttons/Write.gif"
                                                                                Width="20px" CausesValidation="False" ToolTip="คลิก เพื่อคำนวนอัตราค่าใช้จ่าย" />
                                                                            <asp:ImageButton ID="cmdQty" runat="server" ImageUrl="../Images/Buttons/Magnifier.gif"
                                                                                Width="20px" CausesValidation="False" ToolTip="คลิก เพื่อระบุจำนวนที่ต้องการซื้อ/จ้าง" />
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <telerik:RadNumericTextBox ID="txtFooterAmount" runat="server" Width="85px" CssClass="NumericTextBox"
                                                                                ForeColor="Blue" ReadOnly="true">
                                                                                <ClientEvents OnLoad="FooterLoad2" />
                                                                            </telerik:RadNumericTextBox>
                                                                        </FooterTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                </Columns>
                                                            </MasterTableView>
                                                            <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;" 
                                                                GroupContinuedFormatString="" GroupContinuesFormatString="" 
                                                                GroupSplitFormat="" />
                                                            <ClientSettings EnableRowHoverStyle="True">
                                                                <Selecting AllowRowSelect="false" />
                                                                <Scrolling AllowScroll="true" UseStaticHeaders="true"  />
                                                            </ClientSettings>
                                                        </telerik:RadGrid>
                                                    </td>
                                                    <td width="5px">
                                                    </td>
                                                    <td valign="top">
                                                        <fieldset class="FieldSet" style="width: 430px; text-align: left; height: 310px;" >
                                                            <legend class="TextHeaderSmallOrange">
                                                                สรุปยอดเงินจำแนกตามแหล่งเงินและงบรายจ่าย
                                                            </legend>
                                                            <asp:Panel ID="Panel2" runat="server" Height="310px" ScrollBars="Auto">
                                                                <table>
                                                                    <tr>
                                                                        <td width="5px">
                                                                        </td>
                                                                        <td class="TextHeaderSmall">
                                                                            งาน/โครงการ :
                                                                        </td>
                                                                        <td class="TextHeaderSmall">
                                                                            <asp:Label ID="lblBgmProjName" runat="server" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <table cellspacing="0">
                                                                    <asp:Repeater ID="Repeater4" runat="server">
                                                                        <HeaderTemplate>
                                                                            <tr>
                                                                                <td width="5px"></td>
                                                                                <td class="BgLine" colspan="4">
                                                                                    &nbsp;
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td width="5px"></td>
                                                                                <td align="left" width="120px" class="TextHeaderSmallBlack">แหล่งเงิน</td>
                                                                                <td align="left" width="80px" class="TextHeaderSmallBlack">งบรายจ่าย</td>
                                                                                <td align="right" width="90px" class="TextHeaderSmallBlack">คงเหลือ(บาท)</td>
                                                                                <td align="right" width="90px" class="TextHeaderSmallBlack">ขออนุมัติ(บาท)</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td width="5px"></td>
                                                                                <td class="BgLine" colspan="4">
                                                                                    &nbsp;
                                                                                </td>
                                                                            </tr>
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <tr>
                                                                                <td width="5px"></td>
                                                                                <td align="left" width="120px" valign="top"><%# Eval("bgm_source_name")%></td>
                                                                                <td align="left" width="80px" valign="top"><%# Eval("bgm_exp_grp_name")%>
                                                                                    <input id="hBgmSourceSeq" type="hidden" name="hBgmSourceSeq" runat="server" value='<%# Eval("bgm_source_seq")%>' />
                                                                                    <input id="hBgmExpGrpSeq" type="hidden" name="hBgmExpGrpSeq" runat="server" value='<%# Eval("bgm_exp_grp_seq")%>' />
                                                                                </td>
                                                                                <td align="right" style="color: #6699FF" valign="top" width="90px"><asp:Label ID="lblRemainAmount" runat="server" Text='<%# Eval("remain_amount", "{0:n}")%>' /></td>
                                                                                <td align="right" style="color: #0000FF" valign="top" width="90px">
                                                                                    <telerik:RadNumericTextBox ID="txtGrpAmount" runat="server" Width="88px" CssClass="NoBorderNumericTextBox"
                                                                                        ReadOnly="true" ForeColor="Blue">
                                                                                    </telerik:RadNumericTextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </table>
                                                            </asp:Panel>
                                                        </fieldset>
                                                    </td>
                                                </tr>
                                            </table>
                                        <%--</li>
                                    </ul>--%></asp:Panel>
                                <asp:Panel ID="PanelPerson" runat="server" CssClass="panelTab" ScrollBars="Auto" Width="920px" Height="340px">
                                    <table>
                                        <tr>
                                            <td>
                                                <ul class="formList" style="width: 430px">
                                                    <li class="lastListItem">
                                                        <span class="TextHeaderSmall" >คณะทำงาน</span>
                                                    </li>
                                                    <li class="lastListItem">
                                                        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="grdBgmProjectPerson" runat="server" AutoGenerateColumns="false"
                                                            AllowMultiRowEdit="false" AllowMultiRowSelection="false" AllowFilteringByColumn="false"
                                                            Width="530px" Height="280px"
                                                            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                                            GroupingSettings-GroupContinuedFormatString=""
                                                            GroupingSettings-GroupContinuesFormatString=""
                                                            GroupingSettings-GroupSplitFormat=""
                                                            OnItemCommand="grdBgmProjectPerson_ItemCommand">
                                                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1"
                                                                DataKeyNames="bgm_proj_oper_per_seq" NoMasterRecordsText="< ไม่มีข้อมูล >" GroupsDefaultExpanded="false">
                                                                <RowIndicatorColumn>
                                                                    <HeaderStyle Width="20px" />
                                                                </RowIndicatorColumn>
                                                                <ExpandCollapseColumn>
                                                                    <HeaderStyle Width="20px" />
                                                                </ExpandCollapseColumn>
                                                                <Columns>
                                                                    <telerik:GridBoundColumn DataField="bgm_proj_oper_per_seq" DataType="System.Int32" 
                                                                        HeaderText="bgm_proj_oper_per_seq" UniqueName="bgm_proj_oper_per_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="bgm_proj_oper_seq"
                                                                        HeaderText="bgm_proj_oper_seq" UniqueName="bgm_proj_oper_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="emp_seq"
                                                                        HeaderText="emp_seq" UniqueName="emp_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="contact_seq"
                                                                        HeaderText="contact_seq" UniqueName="contact_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="contact_person_seq"
                                                                        HeaderText="contact_person_seq" UniqueName="contact_person_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="class_seq"
                                                                        HeaderText="class_seq" UniqueName="class_seq" Visible="False">
                                                                    </telerik:GridBoundColumn>
                                                                    
                                                                    <telerik:GridTemplateColumn HeaderStyle-Width="15px" AllowFiltering="false">
                                                                        <FilterTemplate></FilterTemplate>
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="cmdEdit" runat="server" CommandName="DataEdit"
                                                                                ImageUrl="~/App_UI/Images/Buttons/Edit.gif" 
                                                                                ToolTip="แก้ไขรายการ" />
                                                                        </ItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderStyle-Width="15px" AllowFiltering="false">
                                                                        <FilterTemplate></FilterTemplate>
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="cmdDelete" runat="server" CommandName="Delete"
                                                                                ImageUrl="~/App_UI/Images/Buttons/Delete.gif" 
                                                                                OnClientClick="javascript: return confirm('ต้องการลบรายการนี้หรือไม่?');"
                                                                                ToolTip="ลบรายการ" />
                                                                        </ItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridBoundColumn DataField="type_name" HeaderText="ประเภท"
                                                                        UniqueName="type_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="per_name" HeaderText="ชื่อ"
                                                                        UniqueName="per_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="per_pos_name" HeaderText="ตำแหน่ง"
                                                                        UniqueName="per_pos_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="per_class_name" HeaderText="ระดับ"
                                                                        UniqueName="per_class_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="per_job_site_name" HeaderText="หน่วยงาน"
                                                                        UniqueName="per_job_site_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                                                    </telerik:GridBoundColumn>
                                                                </Columns>
                                                            </MasterTableView>
                                                            <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;" 
                                                                GroupContinuedFormatString="" GroupContinuesFormatString="" 
                                                                GroupSplitFormat="" />
                                                            <ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick="false">
                                                                <Selecting AllowRowSelect="True" />
                                                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                            </ClientSettings>
                                                        </telerik:RadGrid>
                                                    </li>
                                                </ul>
                                            </td>
                                            <td valign="top">
                                                <ul class="formList" style="width: 250px">
                                                    <li>
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:RadioButtonList ID="rblType" runat="server" 
                                                                        CausesValidation="false"
                                                                        onselectedindexchanged="rblType_SelectedIndexChanged"
                                                                        AutoPostBack="True" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Text="บุคคลภายใน" Value="1" Selected="True">
                                                                        </asp:ListItem>
                                                                        <asp:ListItem Text="บุคคลภายนอก" Value="2">
                                                                        </asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                    <asp:Label ID="lblIndex" runat="server" Visible="False"></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </li>
                                                    <asp:Panel ID="PanelContactPerson" runat="server" Visible="false">
                                                        <li>
                                                            <table>
                                                                <tr>
                                                                    <td width="80px" align="right">
                                                                        ชื่อผู้ติดต่อ :
                                                                    </td>
                                                                    <td>
                                                                        <uc2:DropDownList_Contact ID="DropDownList_Contact1" runat="server" />
                                                                        <span class="span">&nbsp;*</span>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </li>
                                                        <%--<li>
                                                            <table>
                                                                <tr>
                                                                    <td width="80px" align="right">
                                                                        ชื่อบุคคลภายนอก :
                                                                    </td>
                                                                    <td>
                                                                        <uc3:DropDownList_ContactPerson ID="DropDownList_ContactPerson1" runat="server" />
                                                                        <span class="span">&nbsp;*</span>
                                                                        <asp:Image runat="server" id="imgContactPerson1" ImageUrl="~/App_UI/Images/Buttons/warning.png"
                                                                            ToolTip="กรุณากรอกข้อมูล" Visible="false" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </li>--%>
                                                    </asp:Panel>
                                                    <asp:Panel ID="PanelEmployee" runat="server" Visible="true">
                                                        <li>
                                                            <table>
                                                                <tr>
                                                                    <td width="80px" align="right">
                                                                        ชื่อบุคคลภายใน :
                                                                    </td>
                                                                    <td>
                                                                        <uc4:DropDownList_Emp ID="DropDownList_Emp1" runat="server" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </li>
                                                        <li>
                                                            <table>
                                                                <tr>
                                                                    <td width="80px" align="right">
                                                                        ตำแหน่ง :
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="lblEmpPosName" runat="server" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </li>
                                                        <li>
                                                            <table>
                                                                <tr>
                                                                    <td width="80px" align="right">
                                                                        ระดับ :
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="lblClassName" runat="server" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </li>
                                                        <li>
                                                            <table>
                                                                <tr>
                                                                    <td width="80px" align="right">
                                                                        สังกัด :
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="lblJobsiteName" runat="server" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </li>
                                                    </asp:Panel>
                                                    <li class="lastListItem">
                                                        <table width="250px">
                                                            <tr>
                                                                <td align="center">
                                                                    <asp:LinkButton ID="cmdInsert1" runat="server" CssClass="LinkButton" 
                                                                        OnClick="cmdInsert1_Click" ValidationGroup="dtls" CausesValidation="true">
                                                                        <img alt="" id="img4" src="../Images/Buttons/saveDisk.gif" />
                                                                        เพิ่ม
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton ID="cmdUpdate1" runat="server" CssClass="LinkButton" 
                                                                        Visible="false" OnClick="cmdUpdate1_Click" ValidationGroup="dtls" CausesValidation="true">
                                                                        <img alt="" id="img5" src="../Images/Buttons/saveDisk.gif" />
                                                                        แก้ไข
                                                                    </asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                    <asp:LinkButton ID="cmdCancel1" runat="server" CssClass="LinkButton" 
                                                                        Visible="false" OnClick="cmdCancel1_Click" CausesValidation="false">
                                                                        <img alt="" id="img6" src="../Images/Buttons/cancel.gif" />
                                                                        ยกเลิกแก้ไข
                                                                    </asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </li>
                                                </ul>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="PanelFinish" runat="server" CssClass="panelTab" ScrollBars="Auto" Width="920px" Height="340px">
                                    <ul class="formList" style="width: 840px">
                                        <li class="lastListItem">
                                            <table width="840px">
                                                <tr>
                                                    <td class="TextHeaderSmall">
                                                        ข้อมูลของรายการ
                                                    </td>
                                                    <td class="BgLine" width="730px">
                                                    </td>
                                                </tr>
                                            </table>
                                            <table width="840px">
                                                <tr>
                                                    <td width="120px">
                                                        วันที่ทำรายการ :
                                                    </td>
                                                    <td align="left" width="120px">
                                                        <asp:Label ID="lblFinBgmProjectDate" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                    <td width="120px">
                                                        &nbsp;&nbsp;ปีงบประมาณ :
                                                    </td>
                                                    <td align="left" width="120px">
                                                        <asp:Label ID="lblFinBgmYear" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                    <td align="right">
                                                        <asp:LinkButton ID="cmdReport" runat="server" CssClass="LinkButton" OnClientClick="OpenReportWindow()">
                                                            <img alt="" id="imgReport" runat="server" src="~/App_UI/Images/Buttons/Print1.gif" height="15" /> รายงานรายละเอียดการขออนุมัติโครงการ
                                                        </asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        สถานะรายการ :
                                                    </td>
                                                    <td class="TextHeaderSmallOrange">
                                                        <asp:Label ID="lblRecordStatusName" runat="server" />
                                                        <asp:Label ID="lblRecordStatusSeq" runat="server" Visible="false" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                        <li class="lastListItem">
                                            <table width="840px">
                                                <tr>
                                                    <td class="TextHeaderSmall">
                                                        ข้อมูลโครงการ
                                                    </td>
                                                    <td class="BgLine" width="730px">
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        ผลผลิต :
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblFinBgmOutputName" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        กิจกรรมหลัก :
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblFinBgmActName" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        กิจกรรมย่อย :
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblFinBgmSubActName" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        งาน/โครงการ :
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblFinBgmRecName" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        ชื่องาน :
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblFinBgmProjectName" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td valign="top">
                                                        โครงการบูรณาการ :
                                                    </td>
                                                    <td>
                                                        <table>
                                                            <asp:Repeater ID="Repeater2" runat="server">
                                                                <HeaderTemplate>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <tr>
                                                                        <td align="left" style="color: #0000FF">- <%# Eval("bgm_option_name")%></td>
                                                                    </tr>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        วันที่เริ่มต้น :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblFinStartDate" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                    <td>
                                                        &nbsp;&nbsp;วันที่สิ้นสุด :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblFinEndDate" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                    <td>
                                                        &nbsp;&nbsp;จำนวนผู้เข้าร่วมกิจกรรม :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblFinAttendCount" runat="server" ForeColor="Blue">
                                                        </asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                        <li class="lastListItem">
                                            <table width="840px">
                                                <tr>
                                                    <td class="TextHeaderSmall">
                                                        ค่าใช้จ่าย
                                                    </td>
                                                    <td class="BgLine" width="730px">
                                                    </td>
                                                </tr>
                                            </table>
                                            <table width="840px">
                                                <tr>
                                                    <td align="center">
                                                        <asp:Repeater ID="RepeaterBgmSource" runat="server">
                                                            <HeaderTemplate>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <table width="80%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                                                    <tr>
                                                                        <td align="left" style="color: #0000FF">
                                                                            แหล่งเงิน : <%# Eval("m_bgm_projectexpense.m_bgm_mas_source.bgm_source_name") %>
                                                                        </td>
                                                                        <td width="100px" align="right" style="color: #0000FF">
                                                                            <%# Eval("amount", "{0:n2}")%>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <table width="80%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                                                    <tr>
                                                                        <td align="left" width="20px">
                                                                            <asp:Label ID="lblBgmSourceSeq" runat="server" Visible="false" Text='<%# Eval("m_bgm_projectexpense.bgm_source_seq") %>' />
                                                                        </td>
                                                                        <td align="left">
                                                                            <asp:Repeater ID="RepeaterBgmExpGrp" runat="server">
                                                                                <HeaderTemplate>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <table width="100%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                                                                        <tr>
                                                                                            <td colspan="2" style="color: #0066FF">
                                                                                                งบรายจ่าย : <%# Eval("m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_name")%>
                                                                                            </td>
                                                                                            <td width="100px" align="right" style="color: #0066FF">
                                                                                                <%# Eval("amount", "{0:n2}")%>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                    <table width="100%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                                                                        <tr>
                                                                                            <td width="20px">
                                                                                                <asp:Label ID="lblBgmExpGrpSeq" runat="server" Visible="false" Text='<%# Eval("m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_grp_seq") %>' />
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Repeater ID="RepeaterBgmExp" runat="server">
                                                                                                    <HeaderTemplate>
                                                                                                    </HeaderTemplate>
                                                                                                    <ItemTemplate>
                                                                                                        <table width="100%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                                                                                            <tr>
                                                                                                                <td colspan="2">
                                                                                                                    ค่าใช้จ่าย : <%# Eval("m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_name")%>
                                                                                                                </td>
                                                                                                                <td width="100px" align="right">
                                                                                                                    <%# Eval("amount", "{0:n2}")%>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                        </table>
                                                                                                    </ItemTemplate>
                                                                                                </asp:Repeater>
                                                                                            </td>
                                                                                        </tr>
                                                                                     </table>
                                                                                </ItemTemplate>
                                                                            </asp:Repeater>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                        <li class="lastListItem">
                                            <table width="840px">
                                                <tr>
                                                    <td class="TextHeaderSmall">
                                                        คณะทำงาน/เดินทาง
                                                    </td>
                                                    <td class="BgLine" width="700px">
                                                    </td>
                                                </tr>
                                            </table>
                                            <table width="840px">
                                                <tr>
                                                    <td align="center">
                                                        <asp:Repeater ID="RepeaterPerson" runat="server">
                                                            <HeaderTemplate>
                                                                <tr>
                                                                    <th align="left">ประเภท</th>
                                                                    <th align="left">ชื่อ</th>
                                                                    <th align="left">ตำแหน่ง</th>
                                                                    <th align="left">หน่วยงาน/สังกัด</th>
                                                                </tr>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td align="left"><%# Eval("type_name")%></td>
                                                                    <td align="left"><%# Eval("per_name")%></td>
                                                                    <td align="left"><%# Eval("per_pos_name")%></td>
                                                                    <td align="left"><%# Eval("per_job_site_name")%></td>
                                                                </tr>
                                                            </ItemTemplate>
                                                            <AlternatingItemTemplate>
                                                                <tr>
                                                                    <td align="left" bgcolor="#ccffff"><%# Eval("type_name")%></td>
                                                                    <td align="left" bgcolor="#ccffff"><%# Eval("per_name")%></td>
                                                                    <td align="left" bgcolor="#ccffff"><%# Eval("per_pos_name")%></td>
                                                                    <td align="left" bgcolor="#ccffff"><%# Eval("per_job_site_name")%></td>
                                                                </tr>
                                                            </AlternatingItemTemplate>
                                                        </asp:Repeater>
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                    </ul>
                                </asp:Panel>
                            </li>
                        </ul>
                        <asp:Panel ID="PanelStatement" runat="server">
                            <table width="920px">
                                <tr>
                                    <td width="80px">
                                    </td>
                                    <td width="150px">
                                        <asp:LinkButton ID="cmdPrev" runat="server" CssClass="LinkButtonBig" 
                                            onclick="cmdPrev_Click">
                                            <img alt="" id="imgPrev" runat="server" src="~/App_UI/Images/Buttons/Prev.png" height="15" /> Back
                                        </asp:LinkButton>
                                    </td>
                                    <td align="center">
                                        <asp:Label ID="lblError" runat="server" ForeColor="Red" />
                                        <asp:LinkButton ID="cmdApprove" runat="server" CssClass="LinkButtonBigOrange" 
                                            OnClick="cmdApprove_Click">
                                            <img alt="" id="img7" runat="server" src="~/App_UI/Images/Buttons/Approve.gif" height="15" /> Approve
                                        </asp:LinkButton>
                                    </td>
                                    <td width="150px" align="right">
                                        <asp:LinkButton ID="cmdInsert" runat="server" CssClass="LinkButtonBigOrange" 
                                            OnClick="cmdInsert_Click">
                                            <img alt="" id="img1" runat="server" src="~/App_UI/Images/Buttons/saveDisk.gif" height="15" /> Save/Finish
                                        </asp:LinkButton>
                                        <asp:LinkButton ID="cmdUpdate" runat="server" CssClass="LinkButtonBigOrange" 
                                            OnClick="cmdUpdate_Click">
                                            <img alt="" id="img3" runat="server" src="~/App_UI/Images/Buttons/saveDisk.gif" height="15" /> Save/Finish
                                        </asp:LinkButton>
                                        <asp:LinkButton ID="cmdNext" runat="server" CssClass="LinkButtonBig" 
                                            OnClick="cmdNext_Click">
                                            <img alt="" id="img2" runat="server" src="~/App_UI/Images/Buttons/Next.png" height="15" /> Next
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </asp:Panel>
                    
                </asp:Panel>
            </div>
        </div>
    </div>
    <telerik:RadWindowManager ID="RadWindowManager1" VisibleStatusbar="false" ReloadOnShow="true"
        runat="server" Skin="Vista">
        <Windows>
            <telerik:RadWindow 
                runat="server" ID="RadWindow1"
                Width="950px" Height="600px"
                OnClientClose="OnClientClose">
            </telerik:RadWindow>
            <telerik:RadWindow 
                runat="server" ID="RadWindow2"
                Width="950px" Height="600px"
                OnClientClose="OnClientCloseExpRate">
            </telerik:RadWindow>
            <telerik:RadWindow 
                runat="server" ID="RadWindow3"
                Width="950px" Height="600px"
                OnClientClose="OnClientCloseQty">
            </telerik:RadWindow>
            <telerik:RadWindow Title="รายงานรายละเอียดการขออนุมัติโครงการ"
                runat="server" ID="RadWindowReport"
                AutoSize="true" ReloadOnShow="True">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
</asp:Content>